const request = require("../../utils/request.js");
// components/TodayState.js
Component({
  /**
 * 组件的属性列表
 */
  properties: {
    stateId: {
      type: String
    }
  },
  /**
   * 页面的初始数据
   */
  data: {
    switch1: false,
    ovulatoryArray: [
      {
        id: '1',
        title: '排卵试纸',
        color: '#f00'
      },
      {
        id: '2',
        title: '体温记录',
        color: 'black'
      },
      {
        id: '3',
        title: '记录日历',
        color: 'pink'
      },
      {
        id: '4',
        title: '心情倾诉',
        color: 'skyblue'
      }
    ],
    durningArray: [
      {
        id: '1',
        color: '#000',
        title: '免费宝盒'
      },
      {
        id: '2',
        color: 'blue',
        title: '能不能吃'
      },
      {
        id: '3',
        color: 'pink',
        title: '产检时间表'
      },
      {
        id: '4',
        color: 'lime',
        title: '看懂B超单'
      }
    ],
    apiBannerVos: [
      {
        "clickCnt": 1,
        "createTime": "",
        "id": 1,
        "linkType": "",
        "linkUrl": "",
        "position": "",
        "sourceId": "",
        "status": "",
        "updateTime": "",
        "url": 'https://images.unsplash.com/photo-1551334787-21e6bd3ab135?w=640'
      },
      {
        "clickCnt": 1,
        "createTime": "",
        "id": 2,
        "linkType": "",
        "linkUrl": "",
        "position": "",
        "sourceId": "",
        "status": "",
        "updateTime": "",
        "url": 'https://images.unsplash.com/photo-1551214012-84f95e060dee?w=640'
      },
      {
        "clickCnt": 1,
        "createTime": "",
        "id": 3,
        "linkType": "",
        "linkUrl": "",
        "position": "",
        "sourceId": "",
        "status": "",
        "updateTime": "",
        "url": 'https://images.unsplash.com/photo-1551446591-142875a901a1?w=640'
      }
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 4000,
    duration: 1000
  },
  ready() {
    console.log(this.data.stateId)
  },
  methods: {
    onChange(event) {
      const detail = event.detail;
      this.setData({
        'switch1': detail.value
      })
    }
  }
})